<?php
	//require_once('../../auth/auth.php');
	require_once('../auth/session.php');
	
	if($_SESSION['SESS_USER_TYPE']==0){ // ADMINISTRATOR
		$home_title="Administrator";
	} elseif($_SESSION['SESS_USER_TYPE']==1) { // VOLUNTEER
		$home_title="Volunteer";
	} else { // ADOPTOR
		$home_title="Adopter";
	}
?>

<!DOCTYPE html>
<html lang="en">
<head>

	<!--
		Charisma v1.0.0

		Copyright 2012 Muhammad Usman
		Licensed under the Apache License v2.0
		http://www.apache.org/licenses/LICENSE-2.0

		http://usman.it
		http://twitter.com/halalit_usman
	-->
	<meta charset="utf-8">
	<title>Christmas Program |<?php echo " " . $home_title ?> </title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Aaron Huus" >

	<!-- The styles -->
	<style type="text/css">
	  body {
		padding-bottom: 40px;
	  }
	  .sidebar-nav {
		padding: 9px 0;
	  }
	</style>
	<link href="assets/css/bootstrap-classic.css" rel="stylesheet">
	<link href="assets/css/charisma-app.css" rel="stylesheet">
	<link href="assets/css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
	<link href='assets/css/fullcalendar.css' rel='stylesheet'>
	<link href='assets/css/fullcalendar.print.css' rel='stylesheet'  media='print'>
	<link href='assets/css/chosen.css' rel='stylesheet'>
	<link href='assets/css/uniform.default.css' rel='stylesheet'>
	<link href='assets/css/colorbox.css' rel='stylesheet'>
	<link href='assets/css/jquery.cleditor.css' rel='stylesheet'>
	<link href='assets/css/jquery.noty.css' rel='stylesheet'>
	<link href='assets/css/noty_theme_default.css' rel='stylesheet'>
	<link href='assets/css/elfinder.min.css' rel='stylesheet'>
	<link href='assets/css/elfinder.theme.css' rel='stylesheet'>
	<link href='assets/css/jquery.iphone.toggle.css' rel='stylesheet'>
	<link href='assets/css/opa-icons.css' rel='stylesheet'>
	<link href='assets/css/uploadify.css' rel='stylesheet'>

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

	<!-- The fav icon shown on interet tab -->
	<link rel="shortcut icon" href="assets/img/favicon.ico">
		<link rel="icon" href="assets/img/favicon.ico">
		
</head>

<body>
	<?php if(!isset($no_visible_elements) || !$no_visible_elements)	{ ?>
	<!-- topbar starts -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				
			<?php	echo "<a href='".strtolower($home_title).".php'>"; ?> <img class="logo" alt="Logo" src="assets/img/icn_logo.png" /></a>
					
				<!-- user dropdown starts -->
				<div class="btn-group pull-right" >
					<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
						<i class="icon-user"></i><span class="hidden-phone"> <?php echo $_SESSION['SESS_USER_TITLE'] . " " . $_SESSION['SESS_USER_FIRST_NAME'] . " " . $_SESSION['SESS_USER_LAST_NAME']  ?></span>
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="profile.php">Profile</a></li>
						<li class="divider"></li>
						<li><a href="../auth/logout.php">Logout</a></li>
					</ul>
				</div>
				<!-- user dropdown ends -->
				
					<div style="text-align: center">				
						<p class="navbar-text"><h1 style="color:#ededed; font-family:Times New Roman;"><?php echo $page_title ?></h1></p> 
					</div>
				
				<!--/.nav-collapse -->
			</div>
		</div>
	</div>
	<!-- topbar ends -->
	<?php } ?>

	<!-- Navigation Menu -->
	<div class="container-fluid">
		<div class="row-fluid">
		<?php if(!isset($no_visible_elements) || !$no_visible_elements) { 
				include 'templates/navMenu.php';
		?>
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>
			
			<div id="content" class="span10">

			 <!-- Breadcrumb Menu -->			
			<article class="breadcrumb">			
			     <?php
           // One breadcrumb    
                if  ($page_title=="Volunteer"){
                  	echo "<article class=\"breadcrumbs\"><a href='".strtolower($home_title).".php'>Volunteer</a> <div class=\"breadcrumb_divider\"></div></article>";
                } elseif($page_title=="Administrator"){
                		echo "<article class=\"breadcrumbs\"><a href=".strtolower($home_title).".php>Administrator</a> <div class=\"breadcrumb_divider\"></div></article>";
                } elseif($page_title=="Adopter"){
                   	echo "<article class=\"breadcrumbs\"><a href=".strtolower($home_title).".php>Adopter</a> <div class=\"breadcrumb_divider\"></div></article>";
                } else { // Multiple Tabs
                   	echo "<article class=\"breadcrumbs\"><a href=".strtolower($home_title).".php>".$home_title."</a> <div class=\"breadcrumb_divider\"></div><a href=\"#\">".$page_title."</a><div class=\"breadcrumb_divider\"></div></article>";
                }               
                ?> 													
			</article> 			
			<!-- content starts -->
					
			<?php } ?>
